need help with popup script - phpnuke

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   need help with popup script - phpnuke
ZXJosh
CZ Newbie
ZXJosh has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 11, 2005
0.00 posts per day
Posts: 7
Points: 1,305
   
I attached the readme file to the post
==========================
I was able to:
Edit the my_header file - done
Upload the popup.js file - done

My questions is: for the "Text Link" info in the read me. Where is exactly do I add that text to with my modified links for it to work, to the js file or my_header?

Thanks all for some help



Attached Files
README.txt (1.57 KB, Downloaded: 5264 Time(s))


Back to top Reply with quote
#2   re: need help with popup script - phpnuke
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Where are you trying to put the link?



Back to top Reply with quote
#3   Re: re: need help with popup script - phpnuke
ZXJosh
CZ Newbie
ZXJosh has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 11, 2005
0.00 posts per day
Posts: 7
Points: 1,305
   


Originally posted by Kelly_Hero @ Thu Feb 10, 2005 1:51 am:

Where are you trying to put the link?


well thats my question. I put it in the popup.js file, but I never get the popup when I go to my page/site? Is that the right place to add the link?



Back to top Reply with quote
#4   re: need help with popup script - phpnuke
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
You need to put the link on the page in which you want it to display. If you're trying to put it into a block, you need to go to the file that holds the code for that block and put the link in there.



Back to top Reply with quote
#5   re: need help with popup script - phpnuke
ZXJosh
CZ Newbie
ZXJosh has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 11, 2005
0.00 posts per day
Posts: 7
Points: 1,305
   
well I dont need a page or a block to "popup".
I just need a picture or an ad to popup and be able to have a link within it to direct you when clicked. The picture/ad is hosted off of my site, I can get to it if I put the text into the browser so I know it works fine.
I guess I just need to figure out where to put the text for a picture to popup.

Text Link:
echo "<a href=\"EXAMPLE.html\" onClick=\"return popitup('EXAMPLE.html')\">Link to popup</a>\n";

Image Link:
echo "<a href=\"EXAMPLE.html\" onClick=\"return popitup('EXAMPLE.html')\"><img src=\"http://yourimagehere.gif\" border=\"0\"></a>\n";

thanks for your help.



Back to top Reply with quote
#6   re: need help with popup script - phpnuke
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Are you talking about a popup window that automatically pops up when someone visits your site? If so, you're using the wrong script. The script you have above only opens a popup window if you click on the link somewhere on the page.



Back to top Reply with quote
#7   re: need help with popup script - phpnuke
ZXJosh
CZ Newbie
ZXJosh has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 11, 2005
0.00 posts per day
Posts: 7
Points: 1,305
   
yes thats what I want and I guess that could explain it why its not working....

Is there such a thing like what I need?

Thanks



Back to top Reply with quote
#8   re: need help with popup script - phpnuke
_Aerospace_Eng_
CZ Active Member
_Aerospace_Eng_ has been a member for over 20 year's 20 Year Member
usa.gif
Age: 39
Gender: Male
Status: Offline
Joined: Nov 09, 2004
0.03 posts per day
Posts: 200
Points: 10,133
   
there is, well the one u have now can easily be modified to popup onload however any user that has a pop up blocker, that window may never be opened, but if u still want to do this, in the header file for your theme, you would add onload="popitup('EXAMPLE.html')" to your open body tag, i think it may be in your overall_header.tpl file that is in the forums folder of your theme or it may be in just the header.php file, you will also have to call the javascript file for that popup, like this
<s cript type="text/javascript" src="linktoyourjsfile.js"></s cript>

take out the spaces in the word script and put that somewhere in between the head tags of your header file



_________________
Back to top Reply with quote
#9   re: need help with popup script - phpnuke
Mayur
CZ Newbie
Mayur has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 17, 2005
0.00 posts per day
Posts: 1
Points: 142
   
Ok I am using this same thing and I cant seem to find the file includes/my_header.php Can anyone help mr?



Back to top Reply with quote
#10   re: need help with popup script - phpnuke
fear
CZ Newbie
fear has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jan 29, 2005
0.00 posts per day
Posts: 4
Points: 220
   
I am also looking for this. I want a pop up window that I can change the text on, to pop up when someone hits my home page. What would be the code and where would I put this code??

Thanks



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum