Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Aug 2004, 13:26
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Real name: Liam Hawkins
Pop up link with a difference

Im working on something due to be released soon and i need something but not sure how. I asked over at vbulletin.com and got told it requires editing files which i dont believe it does but blah, here is what i posted there


I would like to add a simple little link in the users postbit template that when they click brings up a small pop up screen, which would display some certain information grabbed with variables, fo instance their post count and where they live etc etc.

Yet i have no idea how to do so, im guessing i would create the template that appears inside the pop up, in the templates section in the admincp, that way i can use the variables etc, but if thats correct, after that i am lost.
__________________
Hacks Made :
Store 3.0 Color Name Add On.
Last 5 Attachments On Forum Home
Rap Battle System -=RBS=-

Tutorials Made :
The Basics Of PHP For Beginners and The Basics Of PHP [Part 2]

Running away from that Thousand Post Mark
Reply With Quote
  #2  
Old 04 Aug 2004, 16:15
Modin Modin is offline
 
Join Date: Jun 2004
all you'd need to do is create a new php file that grabs the information you want from the database, and fetches that new template.

then in the postbit you just have make a link to it that pops up.

here's the html way of doing it, you can also use javascript if you want more control on the size of the window, status bars etc...

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
return "PHP Coder";
Reply With Quote
  #3  
Old 04 Aug 2004, 16:19
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Even easier would be a pure DHTML popup that could be draggable, and would use the info already on the page ... a tempalte would be all you would need - no file edits really as the javascript would be placed into headinclude, or in the postbit itself...

Check out dynamicdrive.com for the kind of scripts I'm talking about

EDIT: you'd be adding the template to the end of your postbit template, wrapped in a
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

- position in the code is unimportant as you will be positioning it with DHTML - and make it initially
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but alter that with the javascript...

The link you refered to would be
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and your javascript from dynamicdrive would take the form
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

HTH
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}

Last edited by Natch; 04 Aug 2004 at 16:25.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:19.

Layout Options | Width: Wide Color: