Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Mar 2017, 23:19
Milobil Milobil is offline
 
Join Date: Jun 2012
edit template

Hello,

I would rto know how to edit the template from the database, if possible.

Thanks very much for your help

Last edited by Milobil; 03 May 2017 at 20:43.
Reply With Quote
  #2  
Old 18 Mar 2017, 23:34
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
A quick and easy way without hacking your template would be to create a plugin hooked at "parse_templates" with the code:


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

Replace "xxxx" with the threadid of the thread in which you want the script to be loaded.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 19 Mar 2017, 14:17
Milobil Milobil is offline
 
Join Date: Jun 2012
Ok thanks very much it works fine, a last question.

I basically have to put this code in the post :


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

Which means that once the user clicks on the image, a javascript pop up gets displayed. This works fine, the problem is that because of the "a href="#"", we get redirected to the main page of the forum. Any idea how to solve it, or avoid a redirection outside the current post ?

Thanks very much
Reply With Quote
  #4  
Old 19 Mar 2017, 14:30
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Move the onclick event to the hyperlink itself.
Something like:


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

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 19 Mar 2017, 16:13
Milobil Milobil is offline
 
Join Date: Jun 2012
Thanks guys you're absolutely amazing thanks!!!!!
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 23:57.

Layout Options | Width: Wide Color: