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-15-2010 10:00 PM

Update System
 
1 Attachment(s)
About Hack
The Update System Hack gives you a base where you can publish updates about your community.
Basically the updates you are entering are not important and it is not worth to write a news about it.

Be aware, you dont manage updates for vbulletin software or anything else. It is plain text you and your team
can write and publish on an extra site.

ACP FEATURES:

- Who can publish
- Who can write
- Who can see internal updates


README:

Code:


################################################################################ 
README
################################################################################ 

################################################################################ 
Copyright:
################################################################################ 
    Written by www.entwickler-runde.de
    May 2010
    Contact: webmaster@entwickler-runde.de

################################################################################ 
Information:
################################################################################ 
Current Version: 1.0.1
Creation Date: 17th May 2010 22:04

################################################################################ 
Available Languages:
################################################################################ 
    - English
    - Arabic (Translated by Dr.osamA)
   
   
################################################################################   
Language Phrase Names:
################################################################################ 
    erupdate_date
    erupdate_description
    erupdate_form_intern
    erupdate_form_submit
    erupdate_form_title
    erupdate_menu_add
    erupdate_menu_delete
    erupdate_menu_edit
    erupdate_menu_hide
    erupdate_menu_publish
    erupdate_no
    erupdate_publisher
    erupdate_title
   
    SETTING PHRASES:
    setting_updatesystem_internal_title
    setting_updatesystem_internal_desc
    setting_updatesystem_whocanedit_title
    setting_updatesystem_whocanedit_desc
    setting_updatesystem_whocanpublish_desc
    setting_updatesystem_whocanpublish_title
   
 
################################################################################   
FAQ (Frequently Asked Question)
################################################################################ 
Q: How can I turn off the addon?
A: Go to your Add-On-System and turn if of -> there is no ACP Option because its redundant and not necessary


CHANGELOG:

1.0.1
- Install Script changed

CHANGELOG:[/B]
1.0.0
- Install Script changed


BUG REPORT:

-------

FILES:

erupdate.php
includes/class_erupdate.php
images/icons/fugue/minus.png
images/icons/fugue/pencil.png
images/icons/fugue/plus.png
images/icons/fugue/slash.png
images/icons/fugue/tick.png
product-update_system.xml
README.txt


INSTALL INSTRUCTIONS:
1. Upload Files
2. Install XML
3. Make link to /erupdate.php and post first update

PLANNED UPGRADES FOR 1.0.2
* Offline Page

REQUIREMENTS:
Vbulletin 4.0.3
Jquery


PS:
It is my first mod, and hopefully not my last, so please give me tips and tricks what I should improve!

Translations are more than welcome!

All the best,
bpr from entwickler-runde.de

bpr 05-16-2010 01:38 AM

Reserved

trackpads 05-16-2010 01:51 AM

Very nice, will try it out!

kmohamed 05-16-2010 04:00 AM

great start
hop you the best luck

Veer 05-16-2010 11:49 AM

Demo please? or just post some English screen shots

Acido 05-16-2010 04:06 PM

The install code doesn't create the database table. After manually create the table, i can't see where set up permissions to write or edit updates.

bpr 05-16-2010 05:22 PM

The permissions should be available in the ACP.

Acido 05-16-2010 06:45 PM

sorry but i can't see that in ACP settings, sidepanel or usergroup seetings. Where exactly should be perrmission options?
can you check the installation package file? I bet that it have some files missed.

bpr 05-16-2010 08:55 PM

I was refreshing it a bit... So what I did was changing the install code, so the install should work fine now.

@Acido I was actually checking the XML file
There is written:

<options>
<settinggroup name="updatesystem" displayorder="65535">
<setting varname="updatesystem_whocanedit" displayorder="10">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
<setting varname="updatesystem_internal" displayorder="20">
<datatype>free</datatype>
<defaultvalue>5,6,7</defaultvalue>
</setting>
<setting varname="updatesystem_whocanpublish" displayorder="30">
<datatype>free</datatype>
<defaultvalue>6,7</defaultvalue>
</setting>
</settinggroup>
</options>

So there should be an option group in your general vbulletin settings called: ER Update System - probably one of the last ones

@all:
I added a screen of the ACP settings

Dr.osamA 05-16-2010 10:34 PM

Quote:

Originally Posted by Acido (Post 2037983)
The install code doesn't create the database table. After manually create the table, i can't see where set up permissions to write or edit updates.

for me too

PHP Code:

MySQL Error   Table 'alra7bax_vb4.erupdate' doesn't exist 

doesn't create the database table erupdate

:confused:

installed + translated to Arabic

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

Lupixos 06-17-2010 06:34 PM

i have same problem

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

ImmortalForums 06-29-2010 01:47 PM

Tried using this but it seems there are no links to add etc...


All times are GMT. The time now is 05:03 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.01962 seconds
  • Memory Usage 1,775KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete