vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Update System (https://vborg.vbsupport.ru/showthread.php?t=242604)

bpr 05-17-2010 01:22 AM

Ok guys,
I am really sorry, that it doesnt work out with the database and the table creation... maybe somebody could tell me what I am doing wrong ?

My install code for the plugin is:

PHP Code:

$vbulletin->db->hide_errors();

$vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS '" TABLE_PREFIX "erupdate' (
  'id' int(11) NOT NULL auto_increment,
  'title' varchar(255) NOT NULL,
  'timestamp' timestamp NOT NULL default CURRENT_TIMESTAMP,
  'intern' tinyint(4) NOT NULL,
  'active' tinyint(4) NOT NULL,
  'user_id' int(11) NOT NULL,
  PRIMARY KEY  (`id`)
)"
);

$vbulletin->db->show_errors(); 

Would be interested into providing the arabic language : )

Dr.osamA 05-17-2010 01:31 AM

1 Attachment(s)
With pleasure

i add Arabic language

but i waited for fix install code for the plugin

Can you plzz tel as who to add the cod or table manually ??

ragtek 05-17-2010 05:45 AM

Nice add-on idea.
Instead of using vB Options for the permissions, you should use the permissions system https://vborg.vbsupport.ru/showthrea...ht=permissions

bpr 05-17-2010 08:10 PM

OK the Install Code should certainly work from now on (1.0.1)

@Osama, Thank you very much for the translation I apprechiate your effort a lot! Thank you!

@ragtek, sound good, thanks for your suggestion, I will keep it in mind and will check it out as soon as I have some spare time again!

ragtek 05-18-2010 08:51 AM

Also this
Code:

<ul id="erupdate_menu">
    <li><img src="/images/icons/fugue/plus.png" alt="{vb:phrase erupdate_menu_add}" title="{vb:phrase erupdate_menu_add}" onclick="openDialog('add')" /></li>
    <vb:if condition="$publish == 1"><li><img src="/images/icons/fugue/minus.png" alt="{vb:phrase erupdate_menu_delete}" title="{vb:phrase erupdate_menu_delete}" onclick="openDialog('delete')" /></li></vb:if>
    <vb:if condition="$publish == 1"><li><img src="/images/icons/fugue/tick.png" alt="{vb:phrase erupdate_menu_publish}" title="{vb:phrase erupdate_menu_publish}" onclick="openDialog('publish')" /></li></vb:if>
    <vb:if condition="$publish == 1"><li><img src="/images/icons/fugue/slash.png" alt="{vb:phrase erupdate_menu_hide}" title="{vb:phrase erupdate_menu_hide}" onclick="openDialog('hide')" /></li></vb:if>
    <vb:if condition="$publish == 1"><li><img src="/images/icons/fugue/pencil.png" alt="{vb:phrase erupdate_menu_edit}" title="{vb:phrase erupdate_menu_edit}" onclick="openDialog('preedit')" /></li></vb:if>
</ul>

could be placed into a if condition instead of 4 or?;)

bpr 05-18-2010 12:18 PM

actually thats true, but at that moment, i wasnt that shure if I make for each one permisson set .... will think about it, but its true, just one if is needed at the moment

thanks

anuanu 06-04-2010 09:14 PM

Warning: Invalid argument supplied for foreach() in [path]/includes/class_erupdate.php on line 170

My vbulletin version: 4.0.3

Dragonsys 06-13-2010 04:02 AM

Quote:

Originally Posted by anuanu (Post 2048462)
Warning: Invalid argument supplied for foreach() in [path]/includes/class_erupdate.php on line 170


My vbulletin version: 4.0.3

I get the same message.

sadiq6210 06-13-2010 04:29 AM

Thanks

mordor1 06-13-2010 05:13 PM

same problem here:
Warning: Invalid argument supplied for foreach() in [path]/includes/class_erupdate.php on line 170


All times are GMT. The time now is 02:26 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.01092 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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