Go Back   vb.org Archive > Search Forums
FAQ Community Calendar Today's Posts Search

Showing results 1 to 25 of 203
Search took 0.01 seconds.
Search: Posts Made By: derfelix
Forum: vB4 Programming Discussions 05-29-2010, 10:59 AM
Replies: 0
Views: 717
Posted By derfelix
How do I get the section id in a php widget?

Hello everybody!

I am writing a php widget to get content depending on the sectionid of the cms page..
taking the default sections of the vbulletin clean install,

sectionid 1 would be the...
Forum: vBulletin 4 Articles 04-07-2010, 05:50 PM
Replies: 14
Views: 8,872
Posted By derfelix
ahhh.. thx.. no i actually have to calculate...

ahhh.. thx..
no i actually have to calculate the url from db..
i was doing the error by wanting to do it inside lightbox.. but if done on the page it works..

Thank you
Forum: vBulletin 4 Articles 04-07-2010, 08:28 AM
Replies: 14
Views: 8,872
Posted By derfelix
Excellent... What I have been trying to do...

Excellent...
What I have been trying to do without success is using lightbox to access images outside the vbulletin folder

example :
root -- specialimages/ image1.jpg
root --...
Forum: vBulletin 4 Articles 03-31-2010, 01:12 PM
Replies: 307
Views: 108,658
Posted By derfelix
as far as I have seen, footer template is created...

as far as I have seen, footer template is created at the moment any other template is done...

example:
if at the top of a file.. before you did any template stuff...
you do
echo $footer; exit;...
Forum: vBulletin 4 Articles 02-28-2010, 05:16 AM
Replies: 57
Views: 13,670
Posted By derfelix
well as far as I know (assume) .... (not sure...

well as far as I know (assume) ....
(not sure read somewhere, but sorry, cant remember where)
magic globals dont need registering,
like $template_hook, $show, $vboptions, $stylevar, $vbphrase
not...
Forum: vBulletin 4 Articles 02-28-2010, 03:43 AM
Replies: 57
Views: 13,670
Posted By derfelix
very nice.. you saved my day.. !!! just one...

very nice.. you saved my day.. !!!
just one thing..
I thought the $show array does NOT need to be registered...
$templater->register('show', $show);
havent tested here yet.. but usually on other...
Forum: vBulletin 4.x Styles 02-22-2010, 07:43 PM
Replies: 332
Views: 108,061
Posted By derfelix
very nice.. thankyou !!!

very nice.. thankyou !!!
Forum: vB4 Programming Discussions 02-01-2010, 05:08 AM
Replies: 1
Views: 459
Posted By derfelix
i use...

i use https://vborg.vbsupport.ru/showthread.php?t=231407
F.
Forum: vB4 Programming Discussions 01-28-2010, 07:18 PM
Replies: 17
Views: 1,198
Posted By derfelix
shouldnt you also register post variable in your...

shouldnt you also register post variable in your template?

$arp_var = "{vb:raw thread.title}";

$templater = vB_Template::create('ARP_TEMPLATE');
$templater->register('arp_var', $arp_var);...
Forum: vB4 Programming Discussions 01-28-2010, 07:06 PM
Replies: 1
Views: 753
Posted By derfelix
well i can only tell you how i imported some...

well i can only tell you how i imported some russian language files... in utf8 in 3.8 (as I read they didnt change a lot but will only in 4.1 or 4.2)

First, change the heading of the xml file.....
Forum: vB4 Programming Discussions 01-28-2010, 06:31 PM
Replies: 4
Views: 3,619
Posted By derfelix
Now i understand... Thank You! Felix

Now i understand...
Thank You!
Felix
Forum: vB4 Programming Discussions 01-28-2010, 03:11 PM
Replies: 4
Views: 3,619
Posted By derfelix
Thank you for explaining.. So if I understand...

Thank you for explaining..
So if I understand correctly, I still need the addslashes even if I use escape_string()
because in vbulletin i havent seen one single add or stripslashes anymore....
and...
Forum: vB4 Programming Discussions 01-28-2010, 09:33 AM
Replies: 4
Views: 3,619
Posted By derfelix
when to use htmlspecialchars_uni

Sorry if this question sounds stupid...

I am adapting an old hack of mine, for a multilanguage site.. (in utf8)
I have title, description and username to put into database (and pull from database...
Forum: vB4 Programming Discussions 01-24-2010, 05:27 PM
Replies: 4
Views: 511
Posted By derfelix
You are a genius, Lynn!! It works great.. <a...

You are a genius, Lynn!! It works great..
<a href="{vb:var relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a>
I changed footer template for the top link.....
Forum: vB4 Programming Discussions 01-24-2010, 04:51 PM
Replies: 4
Views: 511
Posted By derfelix
I know lynn But you also know that if i tell...

I know lynn
But you also know that if i tell them about my hack.. they will send me here..
Forum: vB4 Programming Discussions 01-24-2010, 08:19 AM
Replies: 4
Views: 1,190
Posted By derfelix
I suppose its for your attachment hack.. (nice) ...

I suppose its for your attachment hack.. (nice)

You defined the value in settings.. not in stylevars... (atleast in the 1.1 beta)
if you want user to be able to change size in settings..
what I...
Forum: vB4 Programming Discussions 01-24-2010, 06:44 AM
Replies: 4
Views: 1,190
Posted By derfelix
I suspect the px unit is missing ie you did not...

I suspect the px unit is missing
ie you did not define the stylevar as Data Type size (there you can select unit ->pixel)
or you left the unit blank.
to test do following:
add px to height and...
Forum: vB4 Programming Discussions 01-24-2010, 06:17 AM
Replies: 4
Views: 511
Posted By derfelix
Impossible to validate hackpage because of footer

Hello everybody.

I have a hackpage that shows stuff by a user..
works fine...
but the page wont validate because of..... footer... :confused:
the url of the hackpage is:
http /...
Forum: vBulletin 4 Articles 01-21-2010, 04:04 AM
Replies: 307
Views: 108,658
Posted By derfelix
I would fetch it before... if...

I would fetch it before...

if ($_REQUEST['do'] == 'page1')
{

$templater = vB_Template::create('page_bit');

$mypage_bit .= $templater->render();

$templater =...
Forum: vB4 Programming Discussions 01-20-2010, 05:48 AM
Replies: 6
Views: 2,352
Posted By derfelix
add it in footer after the vbulletin init... ...

add it in footer after the vbulletin init...
because maybe you are using stuff that is in the vbulletin.js
and that is only available after the init in footer..
(just a thought)

i have a...
Forum: vB4 Programming Discussions 01-20-2010, 05:44 AM
Replies: 3
Views: 1,145
Posted By derfelix
Well I think print_r is still the best... I...

Well I think print_r is still the best...
I just place it before the template call...
with pre...
print "<pre>";print_r($arraytolookat);exit;
Forum: vB4 Programming Discussions 01-20-2010, 01:30 AM
Replies: 6
Views: 2,352
Posted By derfelix
Nope, I think BusinessName NOT there, at least...

Nope, I think BusinessName NOT there, at least NOT at the time the javascript is called...
You have it at the top..., when the html below is not rendered yet..
I personnally would do it...
Forum: vB4 Programming Discussions 01-19-2010, 04:43 PM
Replies: 2
Views: 1,405
Posted By derfelix
yes... except for the fetch_seo_url() because i...

yes... except for the fetch_seo_url() because i dont have any seo url there...(in the hack)
it works.. for the redirect.. but I loose the anchor...
hoping there arent any security issues.. i will...
Forum: vB4 Programming Discussions 01-19-2010, 04:31 PM
Replies: 8
Views: 541
Posted By derfelix
I would do it that way... either: ...

I would do it that way...
either:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
...
Forum: vB4 Programming Discussions 01-19-2010, 04:06 PM
Replies: 8
Views: 541
Posted By derfelix
it seems to be related to the javascript bug......

it seems to be related to the javascript bug... in vbulletin..
template parser doesnt like the word var inside curly brackets..

var arrInput

inside a curly bracket doesnt work..
2 solutions:...
Showing results 1 to 25 of 203

 
Forum Jump

All times are GMT. The time now is 10:40 PM.


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.02022 seconds
  • Memory Usage 2,065KB
  • 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)footer
  • (1)forumjump
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (2)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)search_results
  • (25)search_results_postbit
  • (1)spacer_close
  • (1)spacer_open
  • (21)threadbit_pagelink 

Phrase Groups Available:
  • global
  • inlinemod
  • prefix
  • search
Included Files:
  • ./search.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/functions_search.php
  • ./includes/functions_databuild.php
  • ./includes/functions_forumlist.php
  • ./includes/functions_misc.php
  • ./includes/functions_forumdisplay.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • search_before_process
  • search_start
  • search_results_start
  • search_results_query_posts
  • search_results_prebits
  • threadbit_process
  • search_results_postbit
  • pagenav_page
  • pagenav_complete
  • forumjump
  • search_complete
  • navbits
  • navbits_complete