Simple Awards System

Started by Windy, November 14, 2006, 09:01:54 PM

Previous topic - Next topic

Fe2O3y

#160
Same problem here with the  : and not  Awards:

Forum version: SMF 1.1.6
Current SMF version: SMF 1.1.6
PHP version: 5.2.6
MySQL version: 5.0.51a-community
Server version: Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
GD version: bundled (2.0.34 compatible)

Using 2.0.0.4b

Found this in Forum Error Log

Apply Filter: Only show the errors with the same message
8: Undefined index: awards
File: /home/ldm3408/public_html/rpmtrucks.net/Themes/default/Display.template.php (main sub template - eval?)
Line: 335

-Scarface-

Salve,

Questa Mod "SimpleAwardsSystem_2_0_0b.zip" è Compatibile anche la SMF 1.1.6 ???

Grazie...
Partecipate su Questo Fantastico Forum!!

edi67

Quote from: -Scarface- on November 05, 2008, 02:11:35 PM
Salve,

Questa Mod "SimpleAwardsSystem_2_0_0b.zip" è Compatibile anche la SMF 1.1.6 ???

Grazie...


Parla in inglese (talk in english)

Leggi nella pagina download con chi è compatibile: Compatible With:
    1.1.3, 1.1.4, 1.1.5, 2.0 Beta 3.1 Public
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

TeaTephi

I'm using SMF 1.1.7 and when I try to install any version I get:

Install Actions
Installations actions for "Simple Award System":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Should I just manually install it?  If so which one works with 1.1.7 and TP with Manuscript theme (if you need that information)
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

katib

Hello
I am using SMF2Beta4
I am having the same problem as this user:
Quote from: Rick22 on September 29, 2008, 09:17:43 AM
Database Error
No database selected
File: D:Program FilesVertrigoServwwwAwardSystemdb2.php
Line: 56

I need help. version 2.0 beta 4
Any idea please
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

katib

I reply to my self
I just commented out those lines

/*
if(!isset($modSettings['award_dir']))        
db_query("INSERT INTO {$db_prefix}settings
        VALUES ('award_dir', '')",__FILE__,__LINE__);
        
if(!isset($modSettings['award_url']))        
db_query("INSERT INTO {$db_prefix}settings
        VALUES ('award_url', '')",__FILE__,__LINE__);*/
/*
$tables = array();
$request = $smcFunc['db_query']('', 'SHOW TABLES', array());
while ($row = $smcFunc['db_fetch_row']($request))
{
   $tables[] = $row[0];
}
$smcFunc['db_free_result']($request);

if (in_array($smcFunc['db_quote']('{db_prefix}awards', array()), $tables))
{
   $columns = array();
   $request = $smcFunc['db_query']('', 'SHOW COLUMNS FROM {db_prefix}awards', array());
   while ($row = $smcFunc['db_fetch_row']($request))
   {
      $columns[] = $row[0];
   }
   $smcFunc['db_free_result']($request);
   
   if (!in_array('ID_AWARD', $columns) || !in_array('ID_AWARDED_MEMBER', $columns) || !in_array('title', $columns) || !in_array('givenDate', $columns) || !in_array('ID_MEMBER', $columns) || !in_array('memberName', $columns) || !in_array('fileName', $columns))
   {
      fatal_error('While attempting to install, this package encountered an issue with the pre-existing "awards" table, if you wish to proceed with the installation, you will be required to remove or rename the offending "awards" table.');
   }
}
*/
منتدى الحجاج ... منتدى للقراءة والكتاب
http://www.hijaj.net

TeaTephi

Bump

Ok so is there a version that works with SMF 1.1.7?  If not, is there a manual edit I can do to make it work?  Or do I need to upgrade to SMF 2.0 ?
I was reading throught the help files and saw several people saying it was not installing on previous versions, but nothing about 1.1.7.

Thanks for your help Windy.
Tea
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

fivewinds

How can I uninstall / delete this mod from my package manager?

I am currently running SMF 1.1.7 and I believe this mod was installed a lot earlier than that.

The mod is called "Simple Award System      2.0.0b"
There is no Uninstall link next to it. Only "List Files" and "Delete" buttons.
There is no Award link on the features section of the Admin panel. Nothing in permissions. Nada.

The listed files are:
   1.  AwardSystemdb.php (4165 bytes)
   2. modification.xml (17741 bytes)
   3. package-info.xml (1431 bytes)
   4. readme.txt (829 bytes)
   5. modification2.xml (18285 bytes)
   6. AwardSystemdb2.php (5370 bytes)
   7. readme2.txt (895 bytes)


I assume something got fubard at one point in time.  Can someone help me uninstall this mod or let me know if its safe to just "Delete" it from the package list?
Currently Using SMF 1.1.8 & TP 0.9.8

TeaTephi

Hi fivewinds
I'm a newbie too, but I think when you upgrade SMF to 1.1.7 the old packages are not re-installed.  I don't think Simple Awards is compatible at ALL with SMF 1.1.7.

First thing I would do is backup your entire forum.

Then you could probably just hit delete next to the mod package and the package would be "gone", but I don't know if remnants are leftover in the PHP coding . . . I'm just not that experienced with programming.

You'll have to wait and see what Windy says, she designed this neat little mod.

I hope she fixes it to work with SMF 1.1.7 because I want to install ASAP.  My members would love this.
Hope that helped ya.
Tea
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

TeaTephi

Quote from: raklet on May 15, 2008, 01:09:21 AM
Quote from: Tyrs_son on May 15, 2008, 01:05:18 AM
I tried to install every version that I thought would be compatible with my version of 1.1.5

I also tried the same mod when I was using 1.1.4 and got the same error message.

Which version of the mod is for 1.1.5? and can I install it manually?





Open the zip file, extract package-info.xml, and add a section for 1.1.5.  Like this:


<install for="1.1.5">
<readme type="file">readme.txt</readme>
<code type="file">AwardSystemdb.php</code>
<modification type="file" format="xml">modification.xml</modification>
</install>


Also add a section for uninstall.  You will know where to put it when you see the file.  It is laid out very clearly.

Thanks Raklet I now can use the parser and try a manual install on 1.1.7

I tried automatic install, but it didn't do anything.  I'm going to manually go over each file and see if I can install it manually. 

I'm trying really hard to install this feature.  Disappointed that automatic install didn't work <<<<sigh>>>>

Can you help me Windy?
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

TeaTephi

#170
Ok I did all the manual edits indicated in the parser for 1.1.6 (even though I have 1.1.7)

Out of 10 files only two had errors:

Parse error: parse error, unexpected
T_CONSTANT_ENCAPSED_STRING, expecting ')' in
/home/content/b/i/b/biblevoyages/html/forum/Sources
/Profile.php on line 3501


Unknown column 'a.title' in 'field list'
File: /home/content/b/i/b/biblevoyages/html/forum/Sources
/Load.php
Line: 902


If I can figure out how to fix these two errors, do you think the mod will work?

I have included the edited files that these errors resulted from.

Thanks in advance for any help.


Fixed the code in Profile.php by changing line 3501 to read:
$title = str_replace(array('<', '>', '&amp;#039;'), array('&lt;', '&gt;', ''), addslashes($_POST['new_award_title']));
I deleted one apostrophe  after '&gt;',

When I click on Awards for "profile info" I get this error:

Unknown column 'a.title' in 'field list'
File: /home/content/b/i/b/biblevoyages/html/forum/Sources/Profile.php
Line: 3525



still getting an error in the load.php file

and an install error:
While attempting to install, this package encountered an issue with the pre-existing "awards" table, if you wish to proceed with the installation, you will be required to remove or rename the offending "awards" table.

Obviously I have to delete the offending table, but I don't know from where?  Is it a PHP file I have to modify?  I just need a little instruction and I can go from there.

SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

TeaTephi

#171
I have finally figured out how to "delete the offending table".

If anyone wants to know, you must use phpmyadmin.  (I have godaddy.com, so I used thiers)

Then you click on database and you'll see previous installations of "tables" with "awards" listed.  I just deleted them.
Then I installed it, and got bunch more errors:
QuoteFatal error: Cannot redeclare awards() (previously declared in /home/content/b/i/b/biblevoyages/html/forum/Sources/Profile.php:3417) in /home/content/b/i/b/biblevoyages/html/forum/Sources/Profile.php on line 3543

Fatal error: Cannot redeclare template_awards() (previously declared in /home/content/b/i/b/biblevoyages/html/forum/Sources/Load.php(1756) : eval()'d code:2666) in /home/content/b/i/b/biblevoyages/html/forum/Sources/Load.php(1756) : eval()'d code on line 2741


Then I thought, "Well, guess I have to uninstall, maybe there are duplicate entries due to multiple installation attempts."

So now it works . . . but not really. 
You can assign awards in the profile, but they never show up in the post.
<<<sigh>>>>
guess I"ll have to check each of the 10 modified php files again, and see which one actually got uninstalled!

Hopefully this post will help others install this mod in smf 1.1.7.


Ok only the Load.php needed to be manually edited.  Now it's working!  Sort of.

In the posts where awards appear, it only has the semi-colon.  Doesn't say Awards:

So at least two others had that problem.

Maybe I can solve that one too?
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

TeaTephi

Um well I think I fixed the ":" problem?

I accidentally uploaded an old display.template.php without the edits for simple awards in it.

When I realized what I had done, I simply uploaded the file with the edits (this was a day later), and now I have "Awards:" in the post under the name.

It could be some kind of cache thing?  I don't know but I'm happy now, with the mod installed perfectly.

However I tried to make it work with a Christmas theme with its own display.template.php file and that didn't work so well.  The coding is different and I don't understand how to fix it.  It just says "unable to load template".

So that's all for now! 
SMF 2.0.2 | TinyPortal 1.107 Veterans day theme Opera 11.50
Mods:Profile Comments.....AEVA Media 2.10.....Activity in profile.....join-reason....Bookmarks 2.3.....SA Chat    Beta 4-1 Rev43....Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.1.....SMFPacks Likes Lite Mod

Thank you guys for all your support and development that you do.  I love my forum, and am so thankful to have a place to ask my questions.  I do love SMF 2.0 it's smoother and all my members love it!

SgtMic

How and where do I resize the award "box"?
I only need it large enough to show 1 award.

Installed on Beta4.

There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Windy

Uploaded a new version, this should fix the issues regarding the ":" problem,  I also fixed another minor issue that would cause an error to be logged when deleting an award in 2.0b4.

Also, version bump for 1.1.7.

Quote from: SgtMic on December 26, 2008, 01:30:27 AM
How and where do I resize the award "box"?
I only need it large enough to show 1 award.

Installed on Beta4.


My mod doesn't have an award box.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

pibe86

Quote from: edi67 on June 25, 2008, 12:23:52 PM
Quote from: sam_2007 on June 24, 2008, 04:27:09 PM
can i change the max large image ? 16x16 is short

go to: Admin Panel -> Modifications -> Miscellaneous and change the value

i am sorry, but i am using 1.1.7 and i can not see that option

thanks

SgtMic

Quote from: SgtMic on December 26, 2008, 01:30:27 AM
How and where do I resize the award "box"?
I only need it large enough to show 1 award.

Installed on Beta4.



??
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

pibe86

Quote from: SgtMic on December 29, 2008, 10:05:17 AM
Quote from: SgtMic on December 26, 2008, 01:30:27 AM
How and where do I resize the award "box"?
I only need it large enough to show 1 award.

Installed on Beta4.


??

i think  he is geting same problem that me, how can we change award size? i am using 1.1.7 and he is using 2.0.4 beta i guess

pibe86


Windy

Admin -> Configuration -> Features and Options.
All unsolicited PM's will be ignored.  Any support requests should go in their topics.

My Mods


Image Zoom Tag
Image Quote Removal
Color Picker
Additional Polls
Simple Awards System

Mods are only updated to the latest same major version of smf on request.

Advertisement: