vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

Allan 11-08-2005 07:12 PM

news version = news phrase

exemple:
Code:

<phrase name="toplist_url_of_image"><![CDATA[URL de l'image (Optionel)]]></phrase>
<phrase name="toplist_username"><![CDATA[Nom Utilisateur]]></phrase>
<phrase name="toplist_width_and_height_too_big"><![CDATA[D?soler, l'image ne peut ?tre ajouter ! La largeur et la hauteur d?passe la limite autoris?. Essayer de nouveau.]]></phrase>
<phrase name="toplist_width_too_big"><![CDATA[D?soler, l'image ne peut ?tre ajouter ! La largeur d?passe la limite autoris?. Essayer de nouveau.]]></phrase>
<phrase name="toplist_yes"><![CDATA[Oui]]></phrase>
// addon phrase for Toplist version 1.0.8
<phrase name="toplist_exemple><![CDATA[exemple]]></phrase>
etc .....
............
</phrasetype>


derekivey 11-08-2005 07:37 PM

Ok, Good Idea Allan, I'll try and do that on newer releases.

Thanks,
Derek

Sean James 11-09-2005 01:55 PM

Quote:

Originally Posted by derekivey
Find:
PHP Code:

$html "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='
{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>"

And just change:
PHP Code:

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea



To what ever you want.

Hope this helps.

Derek


these modications r made in the add_site.php?
Because i cannot find anything that resembles this

Sean James 11-09-2005 02:11 PM

its all good, the modifications need to be made in the Toplist_HTML_Code template.

Very nice script *clicks install*

derekivey 11-09-2005 06:42 PM

Yeah sorry about that. I moved the hard coded html into templates.

Derek

divided_by_fear 11-12-2005 12:22 AM

derekivey now does this only show a link back to the site now? or will it display there button so they can link the button? and if it does display a button how and where do i put my button link?

derekivey 11-12-2005 01:36 AM

It only shows a link, but you can edit the HTML to have it show a button instead. Just edit the Toplist_HTML_Code template and replace:

PHP Code:

<a href="$vboptions[bburl]/in.php?id=$sr[id]target="_BLANK">$_POST[sitename]</a

With:

PHP Code:

<a href="$vboptions[bburl]/in.php?id=$sr[id]target="_BLANK"><img src="path_to_image" border="0"></a

Of course, don't forget to replace path_to_image with the url of the image.

Derek

Xtrato 11-12-2005 10:49 PM

Hey when i install the whole thing and later i wana use a different template do i need to reinstall this or no? I know how to add the links so thats not my worry

Thanks..

derekivey 11-12-2005 11:00 PM

vBulletin adds the templates I believe, so it should be added to the new template.

divided_by_fear 11-12-2005 11:15 PM

derekivey i did that it worked wonderful... one more thing how could i add a table like you have when it shows the code but one above it and have that just show the image they are going to use? so basiclly have it like you do now with with another table above the link with the button inside no code showing there only the code showing on the table below...


All times are GMT. The time now is 06:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02278 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete