Did I overtweak?


  -----  
Author Message

Gephri
Member

Thu Nov 16, 2006 1:29 pm   Post subject: Did I overtweak?
When I click on any of the action buttons on contact.php?mode=show&type=buddy
it takes me to a new page - that should have been a pop-up.

Did I overtweak and break a good think?

Can you tell me how to correct the code that will make the page popup rather than go to a new page (that doesn't even work with the links).

Thanks thoul - great mod!
 

Thoul
Administrator

Fri Nov 17, 2006 12:29 pm   Post subject: re: Did I overtweak?
The problem would be in viewtopic_body.tpl. The links and popup stuff are added there by these steps. You probably tweaked this to fit in with your theme and did a little too much. Smile

Code:

#
#-----[ IN-LINE FIND ]------------------------------------------
#

{postrow.POSTER_FROM}</span><br />

#
#-----[ AFTER, ADD ]------------------------------------------
#

<!-- Contact List - Begin Code Additions -->
      <!-- BEGIN contact -->
         <a href="{postrow.contact.U_BUDDY}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_BUDDY}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_BUDDY}" alt="{postrow.contact.L_ALT_BUDDY}" title="{postrow.contact.L_ALT_BUDDY}" /></a>
         <a href="{postrow.contact.U_IGNORE}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_IGNORE}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_IGNORE}" alt="{postrow.contact.L_ALT_IGNORE}" title="{postrow.contact.L_ALT_IGNORE}" /></a>
         <a href="{postrow.contact.U_DISALLOW}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_DISALLOW}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_DISALLOW}" alt="{postrow.contact.L_ALT_DISALLOW}" title="{postrow.contact.L_ALT_DISALLOW}" /></a>
      <!-- END contact -->
<!-- Contact List - End Code Additions -->
 

Gephri
Member

Fri Nov 17, 2006 4:57 pm   Post subject:
Hi Thoul;
actually the problem is not with viewtopic_body but when I'm inside the contact pages.
Example: I'm viewing contact/show.tpl, put a check in the selection box, and then when I click "Add to Buddy List" it takes me to the popup screen as a regular page. I click Yes or No and that takes me to another regular page (rather than a popup) and I then can't close out.

I'm missing something...somewhere...
 

Thoul
Administrator

Fri Nov 17, 2006 10:18 pm   Post subject: re: Did I overtweak?
Oh, I see. I read your post wrong, sorry about that. When you said popup, viewtopic stuck in my mind. Laughing

The pages you're talking about aren't supposed to be popups. Those are meant to be normal forum pages.
 

Gephri
Member

Sat Nov 18, 2006 2:11 am   Post subject:
Laughing thought may so!
Any way for me to switch those pages to popups, or
fix the last page that has no working exit buttons?
 

Thoul
Administrator

Tue Nov 21, 2006 1:29 am   Post subject: re: Did I overtweak?
It might be possible to change them to popups with some Javascript, but I'm not familiar with how it would be done.

Changing the last page would involve adding some new language strings, tweaking the messages, and maybe some .tpl edits. It's a bit time consuming, and I don't have the time to do it right now.
 

Gephri
Member

Fri Nov 24, 2006 11:56 pm   Post subject: re: Did I overtweak?
got it. thanks for looking into it.
 

Gephri
Member

Tue Apr 03, 2007 8:21 pm   Post subject: confirmation - turn off or change
Hello Thoul - been awhile.
My users are getting a little confused when they add/delete etc a buddy from the contact list mod because
1) after doing so they are shown a page that shows a yes and no button
2) they pick yes
3) they are then shown a page that confirms their action
- no problem until -
4) on the same page they see a 'back' arrow or the x-to close at the top of the screen. If they hit back it takes them back 1 page via javascript.

Thats a lot of detail for a simple request to you:
1) how can I delete the confirmation page (# 3 above)
or
2) use some other footer from the default one for my site.

Thanks for the help
 

Thoul
Administrator

Fri Apr 06, 2007 2:49 pm   Post subject: Re: Did I overtweak?
Welcome back. Smile Sorry about the delay in replying - I missed your post due to a cookie issue. I really need to install a keep unread flags hack here.

Anyway, is this in the popup launched from viewtopic.php or the user control panel?
 

Gephri
Member

Fri Apr 06, 2007 3:24 pm   Post subject:
thanks for not forgetting about me.

Actually its from the memberslist, with the following code

Code:

<!-- BEGIN contact -->
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center"><a href="{memberrow.contact.U_BUDDY}" target="_blank" onclick="javascript:window.open('{memberrow.contact.U_BUDDY}', '_blank', 'width=225, innerWidth=200, height=225, innerHeight=225'); return false" title="{memberrow.contact.L_ALT_BUDDY}"><img border="0" src="{memberrow.contact.IMG_BUDDY}" alt="{memberrow.contact.L_ALT_BUDDY}" /></a></td>
</tr>
<tr>
<td align="center"><a href="{memberrow.contact.U_IGNORE}" target="_blank" onclick="javascript:window.open('{memberrow.contact.U_IGNORE}', '_blank', 'width=225, innerWidth=200, height=225, innerHeight=225'); return false" title="{memberrow.contact.L_ALT_IGNORE}"><img border="0" src="{memberrow.contact.IMG_IGNORE}" alt="{memberrow.contact.L_ALT_IGNORE}" /></a></td>
</tr>
<tr>
<td align="center"><a href="{memberrow.contact.U_DISALLOW}" target="_blank" onclick="javascript:window.open('{memberrow.contact.U_DISALLOW}', '_blank', 'width=225, innerWidth=200, height=225, innerHeight=225'); return false" title="{memberrow.contact.L_ALT_DISALLOW}"><img border="0" src="{memberrow.contact.IMG_DISALLOW}" alt="{memberrow.contact.L_ALT_DISALLOW}" /></a></td>
</tr>
</table>
<!-- END contact -->
 

Page 1 of 2
Go to page 1, 2  Next
Display posts from previous: